<?php
namespace Rbac\Model;
/**
  +----------------------------------------------------------
 * 专业模型类
  +----------------------------------------------------------
 * Description of InfoDisciplineModel
  +----------------------------------------------------------
 * @author Jonas_yang 2016-1-8
  +----------------------------------------------------------
 */
class InfoDisciplineModel extends ExtendModel{
     /**
     * 获取专业列表
     */
    public function getDisciplineList(){
        $list = $this->field("id_id,id_name,ico_id,id_time")->order("id_id")->select();
        if(empty($list)){
            return null;
        }
        foreach($list as $key=>$v){
            $v["id_name_year"] = $v["id_time"]."-".$v["id_name"];
            $list[$key] = $v;
        }
        return $list;
    }
}
